export type State = {
  count: number;
  name: string;
}

export type ActionType = "increment" | "decrement" | "changeName";

export type Action = {
  type: ActionType;
  payload?: Partial<State>;
};